package com.onlinevideo.dao;

import com.onlinevideo.entity.Comment;


import java.util.List;

public interface CommentDao {
    int insert(Comment comment);

    int delete(Long id);

    int deleteByFid(Long fid);

    int deleteByVid(Long vid);

    int update(Comment comment);

    Comment queryById(Long id);

    List<Comment> queryAll();

    List<Comment> queryByVideoId(Long id);

    Comment queryByCommentId(Long commentId);

    List<Comment> queryByFatherId(Long fatherId);

    List<Comment> queryByFatherIdS0(Long fatherId);

    List<Comment> queryByFatherIdS1(Long fatherId);

    List<Comment> queryByVideoIdS0(Long id);

    List<Comment> queryByVideoIdS1(Long id);

    List<Comment> queryAllS0();

    List<Comment> queryAllS1();
}
